<?php
/**
 * Joomla! 1.5 component JoomGPSTracks
 *
 * @version $Id: form.php 2009-06-24 15:40:19 svn $
 * @author Michael Pfister
 * @package joomGPStracks
 * @subpackage backend
 * @license GNU/GPL
 * @filesource
 *
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

JToolBarHelper::title(JText::_('GPS_ADD_CAT'), 'categories.png');
JToolBarHelper::back($alt= 'Back', $href= 'javascript:history.back();');
JToolBarHelper::spacer();
JToolBarHelper::save('savecat', 'Save', 'save.png' );

?>
<form action="" method="post" name="adminForm" id="adminForm" class="adminForm" enctype="multipart/form-data">
    <table class="adminlist" cellpadding="1">
        <thead>
            <tr>
                <th colspan="5" align="center"><?php echo JText::_('GPS_ADD_CAT'); ?></th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td width="150px"><?php echo JText::_('GPS_TITLE'); ?></td>
                <td><input type="text" name="title" value="" /></td>
            </tr>
            <tr>
                <td width="150px"><?php echo JText::_('GPS_PARENT'); ?></td>
                <td><?php echo $this->lists['parent']; ?></td>
            </tr>
            <tr>
                <td width="150px"><?php echo JText::_('PUBLISHED'); ?></td>
                <td><?php echo $this->lists['block']; ?></td>
            </tr>
            <tr>
                <td width="150px"><?php echo JText::_('IMAGE'); ?></td>
                <td><input type="file" name="image" value="" width="30" maxlength="<?php echo $this->maxsize; ?>" /></td>
            </tr>
            <tr>
                <td><?php echo JText::_('GPS_DESC'); ?></td>
                <td><?php echo $this->editor->display( 'desc', '' , '500', '200', '75', '20', false ) ; ?></td>
            </tr>
        </tbody>
    </table>
    <?php
    echo JHTML::_( 'form.token' ); ?>
    <input type="hidden" name="option" value="com_joomgpstracks" />
    <input type="hidden" name="controller" value="cats" />
    <input type="hidden" name="task" value="" />
    <input type="hidden" name="MAX_FILES_SIZE" value="<?php echo $this->maxsize; ?>">
</form>
